import { Commit, Dispatch } from 'vuex'

interface Context {
  commit: Commit,
  dispatch: Dispatch
}

export const setUserName = (context:Context, userName:String) => {
  const { commit } = context
  commit('setUserName', userName)
}
